$(function(){ if($('#global-message').length > 0) $('#global-message').alert_cookie('global_message'); });